import React, { Component } from 'react'
import styles from './ElTitle.module.scss'
import store from '../../../redux/store'
import {connect} from 'react-redux'
 class ElTitle extends Component {
    render() {
        console.log(localStorage.getItem('status'));
       
        return (
            <div className={styles.historyTitleBox}>


                 <div className={styles.historyTitle}>{this.props.status==='true'?this.props.titleMall:this.props.titleHistory}</div>
            </div>
        )
    }
}
export default connect((state)=>{
   return {
    submitStatus:state.searchReducer.submitStatus
   }
},()=>{
    return {}
})(ElTitle)